feat(harness): unify project sessions [Agent Map 02/15] - #820
Conversation
Review — PR #820 (round 1)No confidentiality findings: the diff adds no changesets, docs or fixtures naming a Findings1. Resume now fails closed where it used to degrade — moving a project root bricks its session history
Previously, if Failure: user renames or moves their project directory (or the marker is lost). Every prior 2. Migration rejection is permanent, and its whitelist already disagrees with the type shipped in the same diff
3.
|
d7c42c1 to
fb03529
Compare
Review — PR #820 (round 2, follow-up)Delta: Fixed
Not fixed
Nothing round 1 got wrong. Verdict: request changes — #1 remains a no-recovery resume lock, now also asserted as |
34177a9 to
a2c8d7f
Compare
fb03529 to
a787c58
Compare
Primary change type
Problem and motivation
Project sessions inherited planner/builder roles that changed their tools and lifecycle. Users need ordinary writable sessions with the same project capabilities and preserved conversation history.
Summary and scope
Derive one trusted project/user/session identity on creation and resume, migrate persisted records, and compose the same writable project prompt and capability checks for every project session.
Recognize persisted scope_unavailable failures so a conversation can resume after its trusted project scope is restored. Document the removed role fields in both session identity and tool telemetry.
How this increment fits
Every ordinary project session receives the same capabilities. Legacy bootstrap adapters remain until part 7; persisted proposal actors switch atomically in part 9.
Stack and review boundary
a787c58ef0ec20cb5282d797ee229a709c365f0e; 2,172 changed lines across 24 files, counting additions and deletions including tests.fix/studio-onboarding-followups.Related work
Agent Map checkpoint SAP-3147; relevant work SAP-3148. This packaging follows the maintainer-approved 15-PR split.
Validation
Fresh local checks against
a787c58ef0ec20cb5282d797ee229a709c365f0e:Tests and documentation
Regression coverage: Identity migration, malformed or conflicting ownership, prompt parity, trusted create/resume, and scope loss followed by restart and recovery.
See part 15 for integrated browser, native CLI, and Mac journey validation. The checks above were run independently on this PR’s own commit.
Linux tests run with ordinary user filesystem permissions; the sandbox's extra ambient capabilities are dropped. Hosted CI and automated review are separate from these recorded local results.
Compatibility and release impact
.changeset/ordinary-project-session-identity.mdSecurity
AI assistance
Checklist